Namespace - LJCNetCommon
Parameters
key - The key value.
color - The default color value.
Returns
The Color setting value.
Syntax
C# |
public static Boolean ConfigColor(String key, out Color& color)
|
Retrieves the Config Color value. (RE)
Remarks
This uses the program config file which is the name of the program plus
the extension ".config".
// An example config file.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="BeginColor" value="AliceBlue" />
</appSettings>
</configuration>
Example
C# |
using LJCNetCommon;
NetCommon.ConfigColor("BeginColor", out Color beginColor);
|
Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.